package com.dykj.fireFighting.api.elasticsearch.devHisSs.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;
import java.util.Map;

/**
 * @Author: zly
 * @Description : 盛善
 * @Date: 2021-11-30
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Document(indexName = "shengshan", type = "product", shards = 1, replicas = 0)
public class EsDevHisSs implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一标识
     */
    @Id
    private String id;
    /**
     * 控制吗
     */

    private String kzm;

    @Field(type = FieldType.Keyword)
    private String devCode;
    /**
     * 数据上传时间
     */
    @Field(type = FieldType.Keyword)
    private String upTime;
    /**
     * 设备类型
     */
    @ApiModelProperty(value = "设备类型")
    private String sblx;
    /**
     * 状态发生时间
     */
    @Field(type = FieldType.Keyword)
    private String ztfssj;
    /**
     * 部件状态说明（中文）只做显示
     */
    @ApiModelProperty(value = "部件状态说明（中文）只做显示")
    private String bjztSm;
    /**
     * 部件状态
     */
    @Field(type = FieldType.Keyword)
    private String bjzt;
    @Field(type = FieldType.Keyword)
    private String di1;
    /**
     * 漏电通道
     */
    @ApiModelProperty(value = "漏电通道")
    @Field(type = FieldType.Keyword)
    private String irCh;
    /**
     * 温度通道
     */
    @ApiModelProperty(value = "温度通道")
    @Field(type = FieldType.Keyword)
    private String tCh;
    /**
     * 报警位
     */
    @Field(type = FieldType.Keyword)
    private String bjw;
    /**
     * 故障位
     */
    @Field(type = FieldType.Keyword)
    private String gzw;
    /**
     * 使能位
     */
    @ApiModelProperty(value = "使能位")
    @Field(type = FieldType.Keyword)
    private String snw;
    /**
     * 电量告警位
     */
    @ApiModelProperty(value = "电量告警位")
    @Field(type = FieldType.Keyword)
    private String dlgjw;
    /**
     * 剩余电流
     */
    @ApiModelProperty(value = "剩余电流")
    @Field(type = FieldType.Keyword)
    private String sydl;
    /**
     * 第一路温度值
     */
    @ApiModelProperty(value = "第一路温度值")
    @Field(type = FieldType.Integer)
    private Integer d1lwd;
    /**
     * 第二路温度值
     */
    @ApiModelProperty(value = "第二路温度值")
    @Field(type = FieldType.Integer)
    private Integer d2lwd;
    /**
     * 第三路温度值
     */
    @ApiModelProperty(value = "第三路温度值")
    @Field(type = FieldType.Integer)
    private Integer d3lwd;
    /**
     * 第四路温度值
     */
    @ApiModelProperty(value = "第四路温度值")
    @Field(type = FieldType.Integer)
    private Integer d4lwd;
    /**
     * 电压变比 可能是PT
     */
    @ApiModelProperty(value = "电压变比 可能是PT")
    @Field(type = FieldType.Keyword)
    private String dybb;
    /**
     * 电流变比 可能CT
     */
    @ApiModelProperty(value = "电流变比 可能CT")
    @Field(type = FieldType.Keyword)
    private String dlbb;
    /**
     * UA
     */
    @ApiModelProperty(value = "UA")
    @Field(type = FieldType.Keyword)
    private String ua;
    /**
     * UB
     */
    @ApiModelProperty(value = "UB")
    @Field(type = FieldType.Keyword)
    private String ub;
    /**
     * UC
     */
    @ApiModelProperty(value = "UC")
    @Field(type = FieldType.Keyword)
    private String uc;
    /**
     * IA
     */
    @ApiModelProperty(value = "IA")
    @Field(type = FieldType.Keyword)
    private String ia;
    /**
     * IB
     */
    @ApiModelProperty(value = "IB")
    @Field(type = FieldType.Keyword)
    private String ib;
    /**
     * IC
     */
    @ApiModelProperty(value = "IC")
    @Field(type = FieldType.Keyword)
    private String ic;
    /**
     * P
     */
    @ApiModelProperty(value = "P")
    @Field(type = FieldType.Keyword)
    private String p;
    /**
     * PF
     */
    @ApiModelProperty(value = "PF")
    @Field(type = FieldType.Keyword)
    private String pf;
    /**
     * EP
     */
    @ApiModelProperty(value = "EP")
    @Field(type = FieldType.Keyword)
    private String ep;
    /**
     * 报警复核（0未复核    1已复核）
     */
    @ApiModelProperty(value = "报警复核（0未复核    1已复核）")
    @Field(type = FieldType.Keyword)
    private String status;
    /**
     * 用于关联设备用
     */
    @ApiModelProperty(value = "用于关联设备用")
    @Field(type = FieldType.Keyword)
    private String relationId;
    @Field(type = FieldType.Keyword)
    private String fuheContent;
    @Field(type = FieldType.Keyword)
    private Date fuheTime;
    @Field(type = FieldType.Keyword)
    private String fuhePerson;
    /**
     * 复核人id
     */
    @ApiModelProperty(value = "复核人id")
    @Field(type = FieldType.Keyword)
    private Integer fuhePersonId;
    /**
     * 是否有效复核(0否 1是)
     */
    @ApiModelProperty(value = "是否有效复核(0否 1是)")
    @Field(type = FieldType.Keyword)
    private Integer isEffective;
    @Field(type = FieldType.Keyword)
    private String importPart;

    /**
     * 故障位解析
     */
    @ApiModelProperty(value = "故障位解析")
    @Field(type = FieldType.Keyword)
    private String gzwJx;
    /**
     * 使能位解析
     */
    @ApiModelProperty(value = "使能位解析")
    @Field(type = FieldType.Keyword)
    private String snwJx;
    /**
     * 电力报警状解析
     */
    @ApiModelProperty(value = "电力报警状解析")
    @Field(type = FieldType.Keyword)
    private String dlgjwJx;

    @Field(type = FieldType.Keyword)
    private String unitId;
    @Field(type = FieldType.Keyword)
    private String deviceName;
    @Field(type = FieldType.Keyword)
    private String centerUnitId;
    @Field(type = FieldType.Keyword)
    private String unitName;

}
